package com.oceanstar.service;

import com.oceanstar.Pojo.*;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

public interface IUserInfoService {
    //添加用户
    void insert(UserInfo userInfo) throws Exception;
    //登录
    LoginInfo login(UserInfo userInfo);

    PageInfo<UserInfo> getUserList(UserQueryDTO queryDTO, HttpServletRequest request) throws Exception;

    void deleteUsers(Number[] ids);

    void updateUsers(UserInfo userInfo,String token) throws Exception;

    List<UserInfo> getAllUsers(String token) throws Exception;

    UserInfo getUserInfo(String token);

    void bindFamily(BindFamily bindFamily, String token) throws Exception;

    SelectElderDTO selectElder(String token) throws Exception;

    List<SelectFamilyDTO> selectFamily(Integer elderId) throws Exception;

    void updateUsersByAdmin(UserInfo userInfo, String token);

    AssignedElderDTO assignElderToGrid(Integer gridId, List<Integer> elderlyIds, String token) throws Exception;

    UnassignedElderDTO unassignElderToGrid(Integer gridId, List<Integer> elderlyIds, String token) throws Exception;

    GridBindingsResponse getGridBindings(Integer gridId, Integer page, Integer pageSize, String name, String token) throws Exception;
}
